﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bussiness.Service;
using Ext.Net;

namespace Bussiness.View.BackEnd
{
    public partial class BC_DSBH_NV : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadData();
        }

        public void LoadData()
        {
            this.DSNV_Store.DataSource = new User_Service().getAllVATNSD();
            this.DSNV_Store.DataBind();
        }

        public void Search(object sender, DirectEventArgs e)
        {
            this.DSBH_Store.DataSource = new Order_Service().GetOrderByUser(DSNV_SelectBox.SelectedItem.Value,int.Parse(Thang_SelectBox.SelectedItem.Value));
            this.DSBH_Store.DataBind();
            this.DSBH_Grid.Title = "Doanh số bán hàng của nhân viên " + DSNV_SelectBox.SelectedItem.Text;
        }
    }
}
